/**
 * Copyright (C) BFH www.bfh.ch 2011
 * Code written by: Patrick Dobler, Marc Folly
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package ch.bfh.ti.kybernetik.lego.ki;

import ch.bfh.ti.kybernetik.lego.ki.RobKIFactr.Wesen;

/**
 * The abstract Class for every concrete implementation of a {@link RoboterKI}
 * 
 */
abstract class AbstrRobKI implements RoboterKI {

	private final Wesen wesen;

	private int lightMax = 850;

	private int lightMin = 150;

	private int motorSpeedRight;

	private int motorSpeedLeft;

	public AbstrRobKI(Wesen wesen) {
		this.wesen = wesen;
	}

	@Override
	public void stopMotor() {
		motorSpeedRight = 0;
		motorSpeedLeft = 0;
	}

	@Override
	public abstract String getRoboterKIName();

	@Override
	public int getMotorSpeedRight() {
		return motorSpeedRight;
	}

	@Override
	public void setMotorSpeedRight(int motorSpeedRight) {
		this.motorSpeedRight = motorSpeedRight;
	}

	@Override
	public int getMotorSpeedLeft() {
		return motorSpeedLeft;
	}

	@Override
	public void setMotorSpeedLeft(int motorSpeedLeft) {
		this.motorSpeedLeft = motorSpeedLeft;
	}

	@Override
	public int getLightMax() {
		return lightMax;
	}

	@Override
	public void setLightMax(int lightMax) {
		this.lightMax = lightMax;
	}

	@Override
	public int getLightMin() {
		return lightMin;
	}

	@Override
	public void setLightMin(int lightMin) {
		this.lightMin = lightMin;
	}

	@Override
	public Wesen getWesen() {
		return wesen;
	}

}
